﻿
Imports osi.root.utils
Imports osi.root.formation

Public Module _auto_updating_resolver
    Private ReadOnly p As auto_disposer(Of weak_pointer(Of ithreadpool))

    Sub New()
        p = resolver.auto_updating_resolve(Of ithreadpool)()
    End Sub

    Public Function resolve_ithreadpool() As ithreadpool
        Dim o As ithreadpool = Nothing
        Return If((+p).get(o), o, managed_threadpool.global)
    End Function
End Module
